package com.shy.configs.mvc.models.query;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class OperatorLoginQuery {
    @NotNull(message = "登录名不能为空")
    @Size(min = 5, max = 20, message = "登录名长度在{min}-{max}位之间")
    private String loginName;
    @NotNull(message = "密码不能为空")
    @Size(min = 32, max = 32, message = "密码长度在{min}-{max}位之间")
    private String loginPwd;
}
